//
//  CZCommon.swift
//  weibo27
//
//  Created by mac on 16/4/16.
//  Copyright © 2016年 it.cast. All rights reserved.
//

import UIKit

let kScreenW = UIScreen.mainScreen().bounds.size.width

let kScreenH = UIScreen.mainScreen().bounds.size.height

let kScreenSize = UIScreen.mainScreen().bounds.size
// MARK: 定义全局的通知
let WBSwitchRootViewControllerNotification = "WBSwitchRootViewControllerNotification"

// MARK: 选中照片的数组
let WBStatusSeletedPhoneNotification = "WBStatusSeletedPhoneNotification"
// MARK: 选中照片的 KEY IndexPath
let WBStatusSeletedPhotoIndexPathKey = "WBStatusSeletedPhotoIndexPathKey"

// MARK: 选中照片的 KEY URL
let WBStatusSeletedPhotoURLKey = "WBStatusSeletedPhotoURLKey"

// MARK: 全局的延迟函数，可以直接使用
func delay(delta:Double,finished:()->()){
    
    dispatch_after(
        dispatch_time(DISPATCH_TIME_NOW, Int64(delta * Double(NSEC_PER_SEC))),
        dispatch_get_main_queue()) { () -> Void in
        
            finished()
    }
}


//定义两张图片的之间的距离
let picMargin :CGFloat = 8


































